package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="TenementInfo"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class TenementInfo implements Serializable {

    /** identifier field */
    private Long memberId;

    /** nullable persistent field */
    private String floor;

    /** nullable persistent field */
    private String room;

    /** nullable persistent field */
    private String bedNum;

    /** nullable persistent field */
    private String state;

    /** nullable persistent field */
    private String direction;

    /** nullable persistent field */
    private String roomType;

    /** nullable persistent field */
    private String name;

    /** nullable persistent field */
    private String sex;

    /** nullable persistent field */
    private String birthday;

    /** nullable persistent field */
    private String headship;

    /** nullable persistent field */
    private String job;

    /** nullable persistent field */
    private String marriage;

    /** nullable persistent field */
    private String linkTel;

    /** nullable persistent field */
    private String address;

    /** nullable persistent field */
    private String idcardNum;

    /** nullable persistent field */
    private String reason;

    /** nullable persistent field */
    private String enterDate;

    /** nullable persistent field */
    private String exitDate;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** full constructor */
    public TenementInfo(String floor, String room, String bedNum, String state, String direction, String roomType, String name, String sex, String birthday, String headship, String job, String marriage, String linkTel, String address, String idcardNum, String reason, String enterDate, String exitDate, String userId, String latestDate) {
        this.floor = floor;
        this.room = room;
        this.bedNum = bedNum;
        this.state = state;
        this.direction = direction;
        this.roomType = roomType;
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.headship = headship;
        this.job = job;
        this.marriage = marriage;
        this.linkTel = linkTel;
        this.address = address;
        this.idcardNum = idcardNum;
        this.reason = reason;
        this.enterDate = enterDate;
        this.exitDate = exitDate;
        this.userId = userId;
        this.latestDate = latestDate;
    }

    /** default constructor */
    public TenementInfo() {
    }

    /** minimal constructor */
    public TenementInfo(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Long"
     *             column="MemberId"
     *             unsaved-value="0"
     *         
     */
    public Long getMemberId() {
        return this.memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    /** 
     *            @hibernate.property
     *             column="Floor"
     *             length="6"
     *         
     */
    public String getFloor() {
        return this.floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    /** 
     *            @hibernate.property
     *             column="Room"
     *             length="6"
     *         
     */
    public String getRoom() {
        return this.room;
    }

    public void setRoom(String room) {
        this.room = room;
    }

    /** 
     *            @hibernate.property
     *             column="BedNum"
     *             length="6"
     *         
     */
    public String getBedNum() {
        return this.bedNum;
    }

    public void setBedNum(String bedNum) {
        this.bedNum = bedNum;
    }

    /** 
     *            @hibernate.property
     *             column="State"
     *             length="1"
     *         
     */
    public String getState() {
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }

    /** 
     *            @hibernate.property
     *             column="Direction"
     *             length="6"
     *         
     */
    public String getDirection() {
        return this.direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    /** 
     *            @hibernate.property
     *             column="RoomType"
     *             length="6"
     *         
     */
    public String getRoomType() {
        return this.roomType;
    }

    public void setRoomType(String roomType) {
        this.roomType = roomType;
    }

    /** 
     *            @hibernate.property
     *             column="Name"
     *             length="20"
     *         
     */
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /** 
     *            @hibernate.property
     *             column="Sex"
     *             length="6"
     *         
     */
    public String getSex() {
        return this.sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    /** 
     *            @hibernate.property
     *             column="Birthday"
     *             length="23"
     *         
     */
    public String getBirthday() {
        return this.birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    /** 
     *            @hibernate.property
     *             column="Headship"
     *             length="50"
     *         
     */
    public String getHeadship() {
        return this.headship;
    }

    public void setHeadship(String headship) {
        this.headship = headship;
    }

    /** 
     *            @hibernate.property
     *             column="Job"
     *             length="50"
     *         
     */
    public String getJob() {
        return this.job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    /** 
     *            @hibernate.property
     *             column="Marriage"
     *             length="1"
     *         
     */
    public String getMarriage() {
        return this.marriage;
    }

    public void setMarriage(String marriage) {
        this.marriage = marriage;
    }

    /** 
     *            @hibernate.property
     *             column="LinkTel"
     *             length="40"
     *         
     */
    public String getLinkTel() {
        return this.linkTel;
    }

    public void setLinkTel(String linkTel) {
        this.linkTel = linkTel;
    }

    /** 
     *            @hibernate.property
     *             column="Address"
     *             length="50"
     *         
     */
    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    /** 
     *            @hibernate.property
     *             column="IdCardNum"
     *             length="18"
     *         
     */
    public String getIdcardNum() {
        return this.idcardNum;
    }

    public void setIdcardNum(String idcardNum) {
        this.idcardNum = idcardNum;
    }

    /** 
     *            @hibernate.property
     *             column="Reason"
     *             length="200"
     *         
     */
    public String getReason() {
        return this.reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    /** 
     *            @hibernate.property
     *             column="EnterDate"
     *             length="23"
     *         
     */
    public String getEnterDate() {
        return this.enterDate;
    }

    public void setEnterDate(String enterDate) {
        this.enterDate = enterDate;
    }

    /** 
     *            @hibernate.property
     *             column="ExitDate"
     *             length="23"
     *         
     */
    public String getExitDate() {
        return this.exitDate;
    }

    public void setExitDate(String exitDate) {
        this.exitDate = exitDate;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("memberId", getMemberId())
            .toString();
    }

}
